package com.zenithmind.task.pojo.query;

import com.zenithmind.common.query.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 任务依赖查询条件
 * 
 * @author ZenithMind Team
 * @since 2025-01-09
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "任务依赖查询条件")
public class TaskDependencyQuery extends BaseQuery {

    @Schema(description = "前置任务ID")
    private String predecessorId;

    @Schema(description = "前置任务ID列表")
    private List<String> predecessorIds;

    @Schema(description = "后续任务ID")
    private String successorId;

    @Schema(description = "后续任务ID列表")
    private List<String> successorIds;

    @Schema(description = "依赖类型：1-完成-开始，2-开始-开始，3-完成-完成，4-开始-完成")
    private Integer dependencyType;

    @Schema(description = "依赖类型列表")
    private List<Integer> dependencyTypes;

    @Schema(description = "创建者ID")
    private String creatorId;

    @Schema(description = "创建者ID列表")
    private List<String> creatorIds;

    @Schema(description = "延迟天数最小值")
    private Integer lagDaysMin;

    @Schema(description = "延迟天数最大值")
    private Integer lagDaysMax;

    @Schema(description = "依赖状态")
    private Integer status;

    @Schema(description = "创建时间开始")
    private LocalDateTime createTimeBegin;

    @Schema(description = "创建时间结束")
    private LocalDateTime createTimeEnd;

    @Schema(description = "搜索关键词（备注）")
    private String keyword;
}
